using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using QLNhaSach.BUS.DTO;
using QLNhaSach.DAO;

namespace QLNhaSach.DAO
{
    public class NhanVienQuanLySachDAO : NhanVienDAO 
    {
        //Hien thi DS tat ca Sach trong csdl
        public static DataTable DSSach()
        {
            return SachDAO.DSSach();
        }

        // Them Sach Moi vao trong csdl
        public static bool ThemSach(SachDTO book)
        {
            if(SachDAO.ThemSach(book))
                return true;
            return false;
        }

        // Cap Nhat Thong Tin Sach trong csdl
        public static bool CapNhatTTSach(SachDTO book)
        {
            if(SachDAO.CapNhatThongTinSach(book))
                return true;
            return false;
        }

        // Xoa Sach trong csdl
        public static bool XoaSach(SachDTO book)
        {
            if (SachDAO.XoaSach(book))
                return true;
            return false;
        }

        //Hien thi DS tat ca TheLoai co trong csdl
        //public static DataTable DSTheLoai()
        //{ }

        // Hien thi DS tat ca TacGia co trong csdl
        //public static DataTable DSTacGia()
        //{ }

        // Hien thi DS tat cac NXB co trong csdl
        //public static DataTable DSNXB()
        //{ }


    }
}
